<div class='container'>
    {{ Form::open(array('role'=>'form', 'class' => 'form-horizontal', 'id' => 'frmLogin')) }}
    <div class="form-group form-group-lg">
        {{ Form::label('login','Usuário:', array('class' =>  'col-sm-2 control-label' )) }}
        <div class="col-sm-4">
            {{ Form::text('login', null, array('class' => 'form-control required', 'placeholder' => 'Insira o Login')) }}
        </div>
    </div>
    <div class="form-group form-group-lg">
        {{ Form::label('senha','Senha:',array('class' =>  'col-sm-2 control-label' )) }}
        <div class="col-sm-4">
            {{ Form::password('senha', array('class' => 'form-control required', 'placeholder' => 'Insira a senha')) }}
        </div>
        <span class="input-group-btn">
            <button type="button" id="btnLogar" class="btn btn-primary btn-lg">Logar</button>
        </span>
    </div>
    {{ Form::close() }}
</div>
<script language="javascript">
    $('#btnLogar').click(function () {
        var form = $('#frmLogin');
        if (Core.form.validate(form)) {
            Laravel.Ajax().submit({
                'route': 'logar',
                'callbackSuccess': function () {
                    Core.redirect({'route':'sistema'});
                }
            });
        }
    });


</script>